#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"

int main()
{
	stk stack;
	stackinit(&stack);
	enterstack(&stack, 1);
	enterstack(&stack, 2);
	enterstack(&stack, 3);
	printf("%d\n", outstack(&stack));
	stackpop(&stack);
	enterstack(&stack, 4);
	enterstack(&stack, 5);
	enterstack(&stack, 6);
	while (!stackempty(&stack))
	{
		printf("%d\n", outstack(&stack));
		stackpop(&stack);
	}



	return 0;
}



